﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SalePartial.Utility.WebComponents;


public partial class newView : System.Web.UI.Page
{
    //private Epteks.BLL.Information infoBll = new Epteks.BLL.Information();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                int id = Convert.ToInt32(CleanString.InputText(Request["id"], 10));

                //it's necessary to check the validality of id
                //IList list = infoBll.GetInfoById(id);

                //this.info.DataSource = list;
                //this.info.DataBind();

                //if (list.Count > 0)
                //{
                    //InformationInfo infoObj = (InformationInfo)(list[0]);
                    //if (infoObj.HasImage > 0)
                    //{
                    //    Image image = ((Image)this.info.FindControl("ImageContent"));
                    //    image.ImageUrl = "~/imageOutput.aspx?id=" + infoObj.Id;
                    //    image.Visible = true;
                    //}
                //}
            }
            catch { }
        }
    }
}
